local tArgs = {...}
local err = true
local function findArg(arg)
 for _,v in ipairs(tArgs) do
  if v == arg then
   return true
  end
 end
 return false
end

if findArg("--os-version") then
 err = false
 gui.printAppInfo("systeminfo", os.version())
end
if findArg("--shell-path") then
 err = false
 gui.printAppInfo("systeminfo", shell.path())
end
if findArg("--computer-info") then
 err = false
 gui.printAppInfo("systeminfo", "ID "..os.getComputerID())
 gui.printAppInfo("systeminfo", "Computer labeled as "..os.getComputerLabel())
end
if #tArgs < 1 or err then
 gui.printAppInfo("systeminfo", "arguments not specified")
end